import { request } from '@/utils/request.js'

export const apiGetBanner = () => {
	return request({
		url:'/homeBanner'
	})
}

export const apiGetDayRandom = () => {
	return request({
		url:'/randomWall'
	})
}

export const apiGetNotice = (data={}) => {
	return request({
		url: '/wallNewsList',
		data
	})
}

export const apiGetClassify = (data={}) => {
	return request({
		url: '/classify',
		data
	})
}

export const apiGetClassList = (data={}) => {
	return request({
		url: '/wallList',
		data
	})
}

export const apiSetupScore = (data={}) => {
	return request({
		url: '/setupScore',
		data
	})
}

export const apiWriteDownload = (data={}) => {
	return request({
		url: '/downloadWall',
		data
	})
}

export const apiDetailWall = (data={}) => {
	return request({
		url: '/detailWall',
		data
	})
}

export const apiGetUserInfo = () => {
	return request({
		url: '/userInfo'
	})
}

export const apiGetUserWallList = (data={}) => {
	return request({
		url: '/userWallList',
		data
	})
}

export const apiGetWallNewsDetail = (data={}) => {
	return request({
		url: '/wallNewsDetail',
		data
	})
}

export const apiSearchData = (data={}) => {
	return request({
		url: '/searchWall',
		data
	})
}
